/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBlayer;
import Modellayer.*;
import java.util.ArrayList;
/**
 *
 * @author Søren
 */
public interface IFDBSalesOrder {
    // get all sales orders
    public ArrayList<SalesOrder> getAllOrders(boolean retrieveAssociationAssociation);
    //get salesOrder having the ID
    public SalesOrder findOrder(int salesOrderID, boolean retrieveAssociationAssociation);
    //delete a sales order.
    public void deleteOrder(int salesOrderID);
    //insert a new Sales order
    public int insertSalesOrder(SalesOrder sale);
    //update information about an sales order
    public int updateSalesOrder(SalesOrder sale);
    // find salesOrderID
    public SalesOrder findSalesOrder(int salesOrderID);
}
